package com.welike.shibo.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.welike.shibo.eneity.SysPermission;

import java.util.Set;

/**
 * Created by fangyu on 2019/11/21.
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    /**
     * 查询用户的角色 菜单 权限
     */
    JSONObject getUserPermission(String username);

    /**
     * 查询所有的菜单
     */
    Set<String> getAllMenu();

    /**
     * 查询所有的权限
     */
    Set<String> getAllPermission();
}